﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Control.master" AutoEventWireup="true" CodeFile="Control_iPad.aspx.cs" Inherits="Admin_Control_iPad" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 497px;
        }
        .style2
        {
            width: 171px;
        }
        .style3
        {
            width: 173px;
        }
        .style4
        {
            width: 214px;
        }
        .style7
        {
            width: 69%;
        }
        .style8
        {
            margin-left: 0px;
        }
        .style9
        {
            height: 30px;
        }
        .style10
        {
            height: 39px;
        }
        .style11
        {
            width: 100%;
        }
        .style12
        {
            width: 356px;
        }
        .style13
        {
            width: 312px;
        }
        .style14
        {}
        .style15
        {
            width: 340px;
        }
        .style16
        {
            width: 324px;
        }
        .style17
        {}
        .style18
        {
            width: 337px;
        }
        .style19
        {
            width: 178px;
        }
        .style20
        {}
        .style21
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    
    <table align="center" class="style1">
        <tr>
            <td class="style2">
                ID</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtiPadID" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtiPadID" ErrorMessage="iPad ID Cannot left blank" 
                    ForeColor="Red" ValidationGroup="New Ipad"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Name</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtiPadName" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtiPadName" ErrorMessage="iPad Name Cannot left blank" 
                    ForeColor="Red" ValidationGroup="New Ipad"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Type</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtiPadType" runat="server" Enabled="False" Width="200px">iPad</asp:TextBox>
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                Price</td>
            <td align="left" class="style5">
                <asp:TextBox ID="txtiPadPrice" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td class="style4">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtiPadPrice" ErrorMessage="Price Cannot left blank" 
                    ForeColor="Red" ValidationGroup="New Ipad"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Image</td>
            <td align="left" class="style5">
                <asp:FileUpload ID="fileUploadeiPad" runat="server" />
            </td>
            <td class="style4">
                <asp:Label ID="lbim" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td class="style5">
                <asp:Image ID="imageiPad" runat="server" Height="200px" Width="250px" />
            </td>
            <td class="style4">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style3">
            </td>
            <td class="style6">
                <asp:Button ID="btnAddNewiPad" runat="server" onclick="btnAddNewIpad_Click" 
                    Text="Add New" ValidationGroup="New Iphone" />
            </td>
            <td class="style4">
        <asp:Label ID="lblStatus" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        </table>
        
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
             
                <table class="style7" runat="server" align="center">
        <tr>
            <td colspan="2" class="style10">
                <asp:TextBox ID="txtDetailsID" runat="server" Enabled="False" Width="154px" 
                    Visible="False"></asp:TextBox>
            </td>
            <td class="style10">
                <asp:Label ID="lblStatus2" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style8">
                Details ID</td>
            <td class="style9">
                <asp:DropDownList ID="dropDownIPadDetails" runat="server" Width="200px" 
                    CssClass="style8" Height="20px">
                </asp:DropDownList>
            </td>
            <td rowspan="3">
                <asp:Image ID="imageIpadDetails" runat="server" Height="200px" 
                    Width="250px" />
            </td>
        </tr>
        <tr>
            <td class="style8">
                Details Image</td>
            <td class="style9">
                <asp:FileUpload ID="fileUploadiPadDetails" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style8">
                Details Text</td>
            <td class="style9">
                <asp:TextBox ID="txtDetailsText" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td class="style9">
                <asp:Button ID="btnAddNewDetails" runat="server" 
                    onclick="btnAddNewDetails_Click" Text="Add New" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td class="style9">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
         
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <table class="style11">
        <tr>
            <td align="right" class="style12">
                Product ID:</td>
            <td class="style13">
                <asp:DropDownList ID="ddlProductID" runat="server" Width="200px">
                </asp:DropDownList>
                <asp:Button ID="btnSelectProU" runat="server" onclick="btnSelectProU_Click" 
                    Text="Select" />
            </td>
            <td rowspan="5">
                <asp:Image ID="imgProU" runat="server" CssClass="style14" Height="108px" 
                    Width="121px" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Name:</td>
            <td class="style13">
                <asp:TextBox ID="txtNameProU" runat="server" Width="200px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Type:</td>
            <td class="style13">
                <asp:TextBox ID="tbProTyU" runat="server" Width="200px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Price:</td>
            <td class="style13">
                <asp:TextBox ID="tbProPrU" runat="server" Width="200px" ReadOnly="True"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Image:</td>
            <td class="style13">
                <asp:FileUpload ID="FUpPro" runat="server" Enabled="False" />
            </td>
        </tr>
        <tr>
            <td class="style12">
                &nbsp;</td>
            <td class="style13">
                <asp:Button ID="btnUpdate" runat="server" Text="Update" 
                    onclick="btnUpdate_Click" />
            </td>
            <td>
                <asp:Label ID="lbUpdatePro" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <table class="style11">
        <tr>
            <td class="style15">
                Product&nbsp; Name:</td>
            <td align="center" class="style16">
                <asp:DropDownList ID="ddlProUp2" runat="server" Width="200px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnSelectProDeUp" runat="server" Text="Select" 
                    onclick="btnSelectProDeUp_Click" Width="100px" />
            </td>
        </tr>
        <tr>
            <td class="style15">
                Product Details No:</td>
            <td align="center" class="style16">
                <asp:DropDownList ID="ddlProDeNo" runat="server" Width="200px">
                </asp:DropDownList>
                <asp:Button ID="btnLoadProDeNoUp" runat="server" 
                    onclick="btnLoadProDeNoUp_Click" Text="OK" Width="53px" />
            </td>
            <td rowspan="4">
                <asp:Image ID="imgProDeUp" runat="server" CssClass="style17" Height="154px" 
                    Width="154px" />
            </td>
        </tr>
        <tr>
            <td class="style15">
                Product Details Text:</td>
            <td align="center" class="style16">
                <asp:TextBox ID="tbProDeText" runat="server" ReadOnly="True" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style15">
                Product Details Image:</td>
            <td align="center" class="style16">
                <asp:FileUpload ID="FUpProDeUp" runat="server" Enabled="False" />
            </td>
        </tr>
        <tr>
            <td class="style15">
                &nbsp;</td>
            <td align="center" class="style16">
                <asp:Button ID="btnUpdateProDel" runat="server" Enabled="False" 
                    onclick="btnUpdateProDel_Click" Text="Update" />
            </td>
        </tr>
        <tr>
            <td class="style15">
                &nbsp;</td>
            <td align="center" class="style16">
                <asp:Label ID="lbStatusUpPro" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="ContentPlaceHolder5" Runat="Server">
    <table class="style11">
        <tr>
            <td align="right" class="style12">
                Product ID:</td>
            <td class="style18">
                <asp:DropDownList ID="ddlProDel" runat="server" Width="200px">
                </asp:DropDownList>
            </td>
            <td class="style19">
                <asp:Button ID="btnSelectProDel" runat="server" onclick="btnSelectProDel_Click" 
                    Text="Select" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Name:</td>
            <td class="style18">
                <asp:TextBox ID="txtProNameDel" runat="server" ReadOnly="True" Width="200px"></asp:TextBox>
            </td>
            <td class="style19">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Type:</td>
            <td class="style18">
                <asp:TextBox ID="txtProTyDel" runat="server" ReadOnly="True" Width="200px"></asp:TextBox>
            </td>
            <td class="style19">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Price:</td>
            <td class="style18">
                <asp:TextBox ID="txtProPriDel" runat="server" ReadOnly="True" Width="200px"></asp:TextBox>
            </td>
            <td class="style19">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Image:</td>
            <td class="style18">
                <asp:Image ID="imgProDel" runat="server" CssClass="style20" Height="113px" 
                    Width="113px" />
            </td>
            <td class="style19">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style12">
                &nbsp;</td>
            <td class="style18">
                <asp:Button ID="btnDelPro" runat="server" Enabled="False" 
                    onclick="btnDelPro_Click" Text="Delete" />
            </td>
            <td class="style19">
                <asp:Label ID="lblStatusDelPro" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="ContentPlaceHolder6" Runat="Server">
    <table class="style11">
        <tr>
            <td align="right" class="style12">
                Product ID:</td>
            <td class="style15">
                <asp:DropDownList ID="ddlProDel2" runat="server" Width="200px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="btnSelectProDetDel" runat="server" 
                    onclick="btnSelectProDetDel_Click" Text="Select" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Details No:</td>
            <td class="style15">
                <asp:DropDownList ID="ddlProDetDel" runat="server" Width="200px">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="BtnLoadDetDel" runat="server" onclick="BtnLoadDetDel_Click" 
                    Text="Load" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Detail Text:</td>
            <td class="style15">
                <asp:TextBox ID="txtTextDetDel" runat="server" ReadOnly="True" Width="200px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style12">
                Product Detail Image:</td>
            <td class="style15">
                <asp:Image ID="imgDetDel" runat="server" CssClass="style21" Height="138px" 
                    Width="142px" />
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style12">
                &nbsp;</td>
            <td class="style15">
                <asp:Button ID="btnDeProDet" runat="server" onclick="btnDeProDet_Click" 
                    Text="Delete" />
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

